<?php

class Elem_ppt_slide_model extends Onecore_Model
{

    public function __construct()
    {
        parent::__construct();
        $this->_name = "elem_slides";
        $this->_id = array("id");
        $this->_fields = array("id","title","description","imgpath","audiopath","index",'elem_presentations_id');
        $this->_fieldsConditions = array("ModuloId"=>"where","name"=>"like","description"=>"like");
        $this->_itemName = "Diapositiva";
        $this->_validations = array(
                array(
                    "field"=>"title",
                    "label"=>"Titulo",
                    "rules"=>"required"
                ),
                array(
                    "field"=>"imgpath",
                    "label"=>"Imagen",
                    "rules"=>"required"
                ),
                array(
                    "field"=>"audiopath",
                    "label"=>"Audio",
                    "rules"=>"required"
                ),
                array(
                    "field"=>"elem_presentations_id",
                    "label"=>"Identificador de Presentacion",
                    "rules"=>"required"
                )
            );
    }
    
    
}

